package com.cww.study.biz;

import com.cww.study.service.UserService;
import com.cww.study.vo.LoginVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: cww_project
 * @description:
 * @author: 陈亮
 * @create: 2022-03-12 22:46
 */
@RestController
@RequestMapping("/login")
@Api(tags = "登录")
public class LoginBiz {



    @Resource
    private UserService userService;

    @ApiOperation(value = "登录")
    @PostMapping("/login")
    @CrossOrigin
    public void login(LoginVO vo) {
        userService.login(vo);
    }
}
